import java.util.Scanner;

public class testclass
{
	public static Kurs c1;
	public static Kurs c2;
	public static void main(String args[])
	{	
		Fommie mf = new Fommie("Ich","bin");
		mf.print();
		((Elternklasse)mf).print();
		FomEmp emp1 = new FomEmp("Havel","Patrick",123);
		FomEmp emp2 = new FomEmp("Staedter","Thomas",456);
		c1 = new Kurs(5,emp1,"OO");
		c2 = new Kurs(6,emp2,"IT Management");
		
		studentsAnlegen(c1.getAnzahl());
		System.out.println("------------------------------");
		c1.getStudent(1).print();
		System.out.println("------------------------------");
		emp1.print();
		System.out.println("------------------------------");
		
		c1.print();
		System.out.println("------------------------------");
		c2.print();
	}
	
	
	public static void studentsAnlegen(int j)
	{
		Scanner eingabe = new Scanner(System.in);
		int i=0;
		
		for(i=0;i<c1.getAnzahl();i++)
		{
			System.out.println("Name: ");
			String name = eingabe.next();
			System.out.println("Surname: ");
			String surname = eingabe.next();
			System.out.println("MatrikelNr: ");
			int matnr = eingabe.nextInt();
			System.out.println("BancCode: ");
			int banccode = eingabe.nextInt();
			
			c1.setStudent(new FomStudent(name,surname,matnr,banccode));
			c2.setStudent(new FomStudent(name,surname,matnr+1,banccode+1));
		}
	}
}